// 初始化请求配置
uni.$u.http.setConfig((defaultConfig) => {
	defaultConfig.baseURL = 'https://ndj.techqianmo.com/api/fczj'
	const token = uni.getStorageSync('token');
	if (token) {
		defaultConfig.header = {
			token,
			'content-type': 'application/json;'
		}
	}
	return defaultConfig
})

module.exports = (vm) => {
	require('./requestInterceptors')(vm)
	require('./responseInterceptors')(vm)
}
